package com.lanyou.cook.entity.kettle;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name = "R_USER")
public class KettleUser {

	private long id;
	private String login;
	private String password;
	private String name;
	private String description;
	private Boolean enabled;
	
	@Id
	@Column(name="ID_USER")
	@GeneratedValue(strategy = GenerationType.TABLE, generator="idGenerator")  
	@TableGenerator(name = "idGenerator",  
	    table="t_cook_bu_id_generator",  
	    pkColumnName="table_name",  
	    valueColumnName="next_id",  
	    pkColumnValue="R_USER",  
	    allocationSize=1
	)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

}
